/*
 * @lc app=leetcode.cn id=2119 lang=typescript
 *
 * [2119] 反转两次的数字
 */

// @lc code=start
function isSameAfterReversals(num: number): boolean {
    if (num === 0) return true;
    const t = num.toString();
    return t[t.length - 1] !== "0";
}
// @lc code=end
